﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shape
{
    public class Box
    {
        private double l = 0;
        private double w = 0;
        private double h = 0;

        public Box() { }

        public Box(double l, double w, double h)
        {
            this.l = l;
            this.w = w;
            this.h = h;
        }

        public double Volume(){
            return l*w*h;
        }

        public void Volume(ref double v)
        {
            w = l * h * w;
        }
    }
}
